package com.bwie.community.service;

import com.bwie.common.domain.VoObserve;
import com.bwie.common.domain.*;
import com.bwie.common.domain.request.CommunityReq;
import com.bwie.common.result.PageResult;
import com.bwie.common.result.Result;

import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * <p>ClassName：CommunityService</p >
 * <p>Description：</p >
 * <p>Author：liuchang</p >
 * <p>Date：2024/3/24</p >
 */
public interface CommunityService {
    Result publish(Community community);

    List<Dept> findAllDept();

    Result<PageResult<DTOCommunity>> search(CommunityReq req);


    DTOObserve findUserInfoByObserveId(Integer observeId);

    Result<List<DTOObserve>> findObserveListByCid(Integer cid);


    Result addComment(VoObserve voObserve);

    Result<PageResult<Community>> findCommunityByUserId(VoCommunityReq voCommunityReq);


    void generatePDF( HttpServletResponse response) throws UnsupportedEncodingException, Exception;
}
